Auto merge of #3123 - wimh:platform_versions, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 27 Sep 2016 20:03:32 +0000 (13:03 -0700)
committerGitHub <noreply@github.com>
Tue, 27 Sep 2016 20:03:32 +0000 (13:03 -0700)
Don't download dependencies from other platforms

Having a Cargo.toml which looks like this:

            [package]
            name = "a"
            version = "0.0.1"
            authors = []

            [target.'cfg(unix)'.dependencies]
            foo = "0.1.0"

            [target.'cfg(windows)'.dependencies]
            foo = "0.2.0"

This would still download foo version 0.2.0 on unix. I think there is no need to do that, but please correct me if I'm wrong.

This was triggered by [this](http://stackoverflow.com/questions/39709542/why-does-the-last-platform-specific-dependency-take-precedence-in-cargo) stackoverflow question, but that situation is more complicated, as the version is the same, just the features are different. This PR will not solve that bug. If you want me to include that too, I would have to debug a bit more first....


Trivial merge